@import '../Root.scss';

$parentPaddingWidth: 24px;
$border: 1px solid #e6e6e6;

#panel_content-preview {
  padding: 0 !important;
  height: 100%;
  margin: -$parentPaddingWidth;
  margin-top: -($parentPaddingWidth - 1);

  .list-item {
    line-height: auto;
    height: auto;
    margin: 0;
    padding-right: 24px;
    position: relative;
    display: flex;
    align-items: center;

    .ant-card-actions {
      display: flex;
      align-items: center;
    }
    .ant-card-body {
      padding-left: 12px;
      padding-right: 12px;
    }
  }
  .card-box {
    width: 100%;
    margin: 12px 0;
  }
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
    .card-box {
      border: 2px solid #1890ff;
    }
  }
  .item-mark {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #1890ff;
    padding: 2px 6px;
    color: #fff;
  }

  #preview_left_box {
    height: 100%;
  }

  #preview_list_side {
    position: relative !important;
    height: 100% !important;
    min-height: 100vh;
    box-sizing: border-box;
    border-right: $border;

    > div:last-of-type {
      right: 0 !important;
    }
  }

  #preview_edit_side {
    height: 100%;
    width: 100%;
    min-height: 100vh;
    margin: 12px 0 0 12px;
    background-color: #fff;
  }

  .steps-wrap {
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 12px;
    border-right: 1px solid #efefef;
  }

  .page-content {
    padding: 24px;
  }

  .ant-menu {
    user-select: none;

    .ant-menu-submenu {
      .ant-menu-submenu-title {
        height: auto;
        cursor: default;
        color: #555555;
        border-bottom: $border;
        margin: 0;

        .preview-name {
          font-size: 16px;
          font-weight: bold;
          vertical-align: middle;
        }

        .preview-description {
          word-break: break-all;
          word-wrap: break-word;
          white-space: normal;
          line-height: 20px;
          color: #999999;
          padding-bottom: 15px;
          font-size: 12px;
        }

        .preview-edit {
          cursor: pointer;
          font-size: 16px;
          vertical-align: middle;
          color: #22c920;
        }

        .ant-menu-submenu-arrow {
          top: 30%;
          right: 10px;
        }
      }

      .ant-menu-submenu-title:hover {
        background: #eeeeee;
      }
    }

    $lessonBorder: 1px solid #f2f2f2;

    .ant-menu-item-group-title {
      background: #f9f9f9;
      border-bottom: $lessonBorder;
      padding-left: 25px;
    }

    .ant-menu-item-group-list li:last-child {
      border-bottom: $border;
    }

    .lesson-operation-section {
      a.operation-button {
        float: right;
        border: $lessonBorder;
        border-width: 0 0 1px 1px;
        width: 40px;
        height: 38px;
        margin-top: -8px;
        margin-bottom: -8px;
        text-align: center;
        line-height: 40px;
        color: #555555;
      }

      a.operation-button:first-of-type {
        margin-right: -16px;
      }

      a.operation-button:hover {
        color: #f86cc1;
      }
    }
  }

  .ant-menu-inline,
  .ant-menu-vertical {
    border: 0;
  }
}
